package com.yyq.sos.logs;

import java.util.List;

public class LoggerProxy extends Logger {
	private LogerImpl logger;
	public static final int SAVE_TO_FILE=1;
	public static final int SAVE_TO_DB=2;
	
	public static LoggerProxy getProxy(){
		return new LoggerProxy();
	}
	
	public LoggerProxy(){
		this(new LogerImpl());
	}
	
	public LoggerProxy(LogerImpl logger){
		this.logger = logger;
	}
	
	public Logger setTableClass(Class cls,String tableName){
		logger.setTableClass(cls, tableName);
		return this;
	}
	
	public void log(String table, String actionType,String result,String content){
		logger.log(table, actionType, result, content);
	}
	
	public void log(String tableName,String actionType,String result,String content,int saveType){
		logger.log(tableName,actionType, result,content,saveType);
	}
	
	public void log(String actionType, String logResult,List beforeList, List afterList) {
		logger.log(actionType, logResult,beforeList,afterList);
	}

	public void log(String actionType, String logResult,List objCtx) {
		logger.log(actionType, logResult, objCtx);
	}

	public void log(String actionType, String logResult,Object updateBeforeObj, Object updateAfterObj) {
		logger.log(actionType, logResult, updateBeforeObj, updateAfterObj);
	}

	public void log(String actionType, String result,
			Object obj) {
		logger.log(actionType, result, obj);
	}

	public void log(String actionType, String result) {
		logger.log(actionType, result);
	}
}
